﻿using System;
using System.Collections.Generic;

namespace IMMeDotNet {
	partial class Host {

		/// <summary>
		/// Sends a <see cref="Message"/>.
		/// </summary>
		/// <param name="message">The <see cref="Message"/> to send.</param>
		public void SendMessage(Connection connection, Message message) {
			this.Write(connection.BuildMessage(message));
		}

	}
}
